package models

import "gorm.io/gorm/schema"

type Statistical struct {
	Id int64 `json:"id"  gorm:"primaryKey"`
	SqlTimeFields

	Date  string  `json:"password" gorm:"type:varchar(32)"`
	Name  string  `json:"nickname" gorm:"type:varchar(64)"`
	Value float64 `json:"value" gorm:"type:decimal(13,6)"`
}

func (r *Statistical) TableName(namer schema.Namer) string {
	return namer.TableName("statistical")
}
